package SEDay03;

import com.sun.xml.internal.ws.api.server.LazyMOMProvider;

import java.util.Scanner;

public class Subject1 {
    public static void main(String arg[]) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入你的年龄：");

        int ago = scanner.nextInt();

        if (ago >= 18) {
            System.out.println("恭喜，您已经成年了！");
        } else if (ago >= 0 & ago < 18) {
            System.out.println("您还未成年！");
        } else {
            System.out.println("你输入的年龄错误！");
        }
    }
}
